Scripting > CxHmiFms > CxFmsClosePeriodCtrl Object > CxFmsClosePeriodCtrl Example

CxFmsClosePeriodCtrl Example

Use the CxFmsClosePeriodCtrl object to display and manipulate an ActiveX CygNet FMS Close Period Control in a CygNet Studio screen environment.

CygNet FMS Close Period Control

To see an example FMS Close Period control implemented in a pre-designed screen, open the FMS Close Period Ctrl.csf file in the CygNet\Clients\CStudio\Screens\Examples folder.

CygNet Studio Screen Script: FMS Close Period Ctrl.csf

Sub btnApply_EventClick()

Dim This : Set This = btnApply

FmsClosePeriod.PITDateTime = editPIT.Text

FmsClosePeriod.UsePIT = checkUsePIT.Check

FmsClosePeriod.Apply True

End Sub

 

Sub btnCancel_EventClick()

Dim This : Set This = btnCancel

FmsClosePeriod.Cancel

End Sub

 

Sub checkUsePIT_EventChange()

Dim This : Set This = checkUsePIT

FmsClosePeriod.UsePIT = this.Check

editPIT.Enable this.Check

End Sub

 

Sub TheView_EventInitialize()

Dim This : Set This = TheView

checkUsePIT.Check = FmsClosePeriod.UsePIT

editPIT.Text = FmsClosePeriod.PITDateTime

editPIT.Enable = FmsClosePeriod.UsePIT

End Sub

Back to top

Let us know how we can improve this topic.

CygNet at weatherford.com

© 2020 Weatherford. All rights reserved.